<?php
/**
 * Created by b17
 * 3/23/12 8:38 PM
 */

namespace G4T\Form\Element;

use G4T\Form\Validator\PhoneValidator;

class PhoneElement extends \Zend_Form_Element_Text implements ElementInterface, TypeInterface
{
    public function init()
    {
        parent::init();
        $this->addValidator(new PhoneValidator());
    }

    public function setParams(array $params)
    {

    }

    /**
     * Текстовое название типа для jqgrid.
     *
     */
    public function getFormElementType()
    {
        return 'text';
    }
}
